home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games Extra 1996 September / Amiga Games Extra CD-ROM 9-1996.iso / userbox / publicdomain / vim-4.2 / doc / vim_win.txt < prev    next >
Text File  |  1996-06-16  |  22KB  |  562 lines

  1. *vim_win.txt*   For Vim version 4.2.  Last modification: 1996 June 16
  2.  
  3. Editing with multiple windows and buffers.
  4.  
  5. The commands which have been added to use multiple windows and buffers are
  6. explained here.  Additionally, there are explanations for commands that work
  7. differently when used in combination with more than one window.
  8.  
  9.  
  10. A window is a viewport onto a buffer.  You can use multiple windows on one
  11. buffer, or several windows on different buffers.
  12.  
  13. A buffer is a file loaded into memory for editing.  The original file remains
  14. unchanged until you write the buffer to the file.
  15.  
  16. A buffer can be in one of three states:
  17.  
  18.                     *active_buffer*
  19. active:   The buffer is displayed in a window.  If there is a file for this
  20.       buffer, it has been read into the buffer.  The buffer may have been
  21.       modified.
  22.                     *hidden_buffer*
  23. hidden:   The buffer is not displayed.  If there is a file for this buffer, it
  24.           has been read into the buffer.  The buffer may have been modified.
  25.                     *inactive_buffer*
  26. inactive: The buffer is not displayed and does not contain anything.  Options
  27.           for the buffer are remembered if the file was once loaded.
  28.  
  29. In a table:
  30.  
  31. state        displayed    loaded        ":buffers"
  32.         in window            shows
  33. active          yes         yes          ' '
  34. hidden          no         yes          'h'
  35. inactive      no         no          '-'
  36.  
  37.  
  38. Starting Vim
  39. ------------
  40.  
  41. By default, Vim starts with one window, just like Vi.
  42.  
  43. The "-o" argument to Vim can be used to open a window for each file in the
  44. argument list: "Vim -o file1 file2 file3" will open three windows.
  45.  
  46. "-oN", where N is a decimal number, opens N windows.  If there are more
  47. filenames than windows, only N windows are opened and some files do not get a
  48. window.  If there are more windows than filenames, the last few windows will
  49. be editing empty buffers.
  50.  
  51. If there are many filenames, the windows will become very small.  You might
  52. want to set the 'winheight' option to create a workable situation.
  53.  
  54.                             *status_line*
  55. A status line will be used to separate windows.  The 'laststatus' option tells
  56. when the last window also has a status line:
  57.     'laststatus' = 0    never a status line
  58.     'laststatus' = 1    status line if there is more than one window
  59.     'laststatus' = 2    always a status line
  60. Normally, inversion is used to display the status line.  This can be changed
  61. with the 's' character in the 'highlight' option.  For example, "sb" sets it to
  62. bold characters.  If no highlighting is used for the status line ("sn"), the
  63. '=' character is used.  If the mouse is supported and enabled with the 'mouse'
  64. option, a status line can be dragged to resize windows.
  65.  
  66. Note: If you expect your status line to be in reverse video and it isn't,
  67. check if the 'highlight' option contains "si".  In version 3.0, this meant to
  68. invert the status line.  Now it should be "sr", reverse the status line, as
  69. "si" now stands for italic!  If italic is not available on your terminal, the
  70. status line is inverted anyway; you will only see this problem on terminals
  71. that have termcap codes for italics.
  72.  
  73.  
  74. Opening a new window
  75. --------------------
  76.  
  77. CTRL-W s                        *CTRL-W_s*
  78. CTRL-W S                        *CTRL-W_S*
  79. CTRL-W CTRL-S                        *CTRL-W_CTRL-S*
  80. :[N]sp[lit]                        *:sp* *:split*
  81.         Split current window in two.  The result is two viewports on
  82.         the same file.  Make new window N high (default is to use half
  83.         the height of the current window).  Reduces the current window
  84.         height to create room (and others, if the 'equalalways' option
  85.         is set).  (Note: CTRL-S does not work on all terminals).
  86.  
  87. CTRL-W n                        *CTRL-W_n*
  88. CTRL-W CTRL_N                        *CTRL-W_CTRL-N*
  89. :[N]new                            *:new*
  90.         Create a new window and start editing an empty file in it.
  91.         Make new window N high (default is to use half the existing
  92.         height).  Reduces the current window height to create room (and
  93.         others, if the 'equalalways' option is set).
  94.  
  95. :[N]new [+command] {file}
  96. :[N]split [+command] {file}                *:split_f*
  97.         Create a new window and start editing file {file} in it.  If
  98.         [+command] is given, execute the command when the file has
  99.         been loaded.  Make new window N high (default is to use half
  100.         the existing height).  Reduces the current window height to
  101.         create room (and others, if the 'equalalways' option is set).
  102.  
  103. :[N]sv[iew] [+command] {file}                *:sv* *:sview*
  104.         Same as ":split", but set 'readonly' option for this buffer.
  105.  
  106. CTRL-W CTRL-^                    *CTRL-W_CTRL-^* *CTRL-W_^*
  107. CTRL-W ^    Does ":split #", split window in two and edit alternate file.
  108.         When a count is given, it becomes ":split #N", split window
  109.         and edit buffer N.
  110.  
  111. Closing a window
  112. ----------------
  113.  
  114. CTRL-W q                        *CTRL-W_q*
  115. CTRL-W CTRL-Q                        *CTRL-W_CTRL-Q*
  116. :quit        Quit current window, unless the buffer was changed and there
  117.         are no other windows for this buffer.  When quitting the last
  118.         window (not counting help windows), exit Vim. (Note: CTRL-Q
  119.         does not work on all terminals)
  120.  
  121. :quit!        Quit current window.  If this was the last window for a buffer,
  122.         any changes to that buffer are lost.  When quitting the last
  123.         window (not counting help windows), exit Vim.
  124.  
  125. CTRL-W CTRL-C                    *CTRL-W_CTRL-C*
  126. CTRL-W c                    *CTRL-W_c* *:clo* *:close*
  127. :clo[se]    Quit current window, unless it is the last window on the
  128.         screen.  The buffer becomes hidden (unless there is another
  129.         window editing it).  (Note: CTRL-W CTRL-C does not work).
  130.  
  131. CTRL-W o                        *CTRL-W_o*
  132. CTRL-W CTRL-O                    *CTRL-W_CTRL-O* *:on* *:only*
  133. :on[ly]        Make the current window the only one on the screen.  All other
  134.         windows are closed.  All buffers in the other windows become
  135.         hidden.
  136.  
  137.  
  138. Moving the cursor to other windows
  139. ----------------------------------
  140.  
  141. CTRL-W <Down>                    *CTRL-W_<Down>*
  142. CTRL-W CTRL-J                    *CTRL-W_CTRL-J* *CTRL-W_j*
  143. CTRL-W j    move cursor to Nth window below current one.
  144.  
  145. CTRL-W <Up>                    *CTRL-W_<Up>*
  146. CTRL-W CTRL-K                    *CTRL-W_CTRL-K* *CTRL-W_k*
  147. CTRL-W k    move cursor to Nth window above current one.
  148.  
  149. CTRL-W w                    *CTRL-W_w* *CTRL-W_CTRL-W*
  150. CTRL-W CTRL-W    Without count: move cursor to window below current one.  If
  151.         there is no window below, go to top window.
  152.         With count: go to Nth window.
  153.  
  154.                         *CTRL-W_W*
  155. CTRL-W W    Without count: move cursor to window above current one.  If
  156.         there is no window above, go to bottom window.
  157.         With count: go to Nth window.
  158.  
  159. CTRL-W t                    *CTRL-W_t* *CTRL-W_CTRL-T*
  160. CTRL-W CTRL-T    move cursor to top window.
  161.  
  162. CTRL-W b                    *CTRL-W_b* *CTRL-W_CTRL-B*
  163. CTRL-W CTRL-B    move cursor to bottom window.
  164.  
  165. CTRL-W p                    *CTRL-W_p* *CTRL-W_CTRL-P*
  166. CTRL-W CTRL-P    go to previous (last accessed) window.
  167.  
  168. If Visual mode is active and the new window is not for the same buffer, the
  169. Visual mode is ended.
  170.  
  171.  
  172. Moving windows around
  173. ---------------------
  174.  
  175. CTRL-W r                    *CTRL-W_r* *CTRL-W_CTRL-R*
  176. CTRL-W CTRL-R    Rotate windows downwards.  The first window becomes the second
  177.         one, the second one becomes the third one, etc.  The last
  178.         window becomes the first window.  The cursor remains in the
  179.         same window.
  180.  
  181.                         *CTRL-W_R*
  182. CTRL-W R    Rotate windows upwards.  The second window becomes the first
  183.         one, the third one becomes the second one, etc.  The first
  184.         window becomes the last window.  The cursor remains in the
  185.         same window.
  186.  
  187. CTRL-W x                    *CTRL-W_x* *CTRL-W_CTRL-X*
  188. CTRL-W CTRL-X    Without count: Exchange current window with next one.  If there
  189.         is no next window, exchange with previous window.
  190.         With count: Exchange current window with Nth window (first
  191.         window is 1).  The cursor is put in the other window.
  192.  
  193.  
  194. Window resizing
  195. ---------------
  196.  
  197.                         *CTRL-W_=*
  198. CTRL-W =    make all windows (almost) equally high.
  199.  
  200. :res[ize] -N                    *:res* *:resize* *CTRL-W_-*
  201. CTRL-W -    decrease current window height by N
  202.  
  203. :resize +N                    *CTRL-W_+*
  204. CTRL-W +    increase current window height by N
  205.  
  206. :resize [N]
  207. CTRL-W CTRL-_                    *CTRL-W_CTRL-_* *CTRL-W__*
  208. CTRL-W _    set current window height to N (default: highest possible)
  209.  
  210. z<nr><CR>    set current window height to nr
  211.  
  212. You can also resize the window by dragging a status line up or down with the
  213. mouse.  This only works if the version of Vim that is being used supports the
  214. mouse and the 'mouse' option has been set to enable it.
  215.  
  216. The option 'winheight' ('wh') is used to set the minimal window height of the
  217. current window.  This option is used each time another window becomes the
  218. current window.  If the option is '0', it is disabled.  Set 'winheight' to a
  219. very large value, e.g., '9999', to make the current window always fill all
  220. available space.  Set it to a reasonable value, e.g., '10', to make editing in
  221. the current window comfortable.
  222.  
  223. When the option 'equalalways' ('ea') is set, all the windows are automatically
  224. made the same size after splitting or closing a window.  If you don't set this
  225. option, splitting a window will reduce the size of the current window and
  226. leave the other windows the same.  When closing a window, the extra lines are
  227. given to the window above it.
  228.  
  229. The option 'commandheight' ('ch') is used to set the height of the command
  230. line.  If you are annoyed by the "Hit RETURN to continue" questions for long
  231. messages, set this option to 2 or 3.
  232.  
  233. If there is only one window, resizing that window will also change the command
  234. line height.  If there are several windows, resizing the current window will
  235. also change the height of the window below it (and sometimes the window above
  236. it).
  237.  
  238.  
  239. Exiting Vim with multiple windows or buffers
  240. --------------------------------------------
  241.  
  242.                             *:qa* *:qall*
  243. :qa[ll]        Exit Vim, unless there are some buffers which have been
  244.         changed.  (Use ":bmod" to go to the next modified buffer).
  245.  
  246. :qall!        Exit Vim.  Any changes to buffers are lost.
  247.  
  248. :wqa[ll]                    *:wqa* *:wqall* *:xa* *:xall*
  249. :xa[ll]        Write all changed buffers and exit Vim.  If there are buffers
  250.         without a file name, which are readonly or which cannot be
  251.         written for another reason, Vim is not quit.
  252.  
  253. :wqall!
  254. :xall!        Write all changed buffers, even the ones that are readonly,
  255.         and exit Vim.  If there are buffers without a file name or
  256.         which cannot be written for another reason, Vim is not quit.
  257.  
  258.  
  259. Writing with multiple buffers
  260. -----------------------------
  261.  
  262.                             *:wa* *:wall*
  263. :wa[ll]        Write all changed buffers.  Buffers without a file name or
  264.         which are readonly are not written.
  265.  
  266. :wa[ll]!    Write all changed buffers, even the ones that are readonly.
  267.         Buffers without a file name are not written.
  268.  
  269.  
  270. Overview of argument and buffer list commands
  271. ---------------------------------------------
  272.  
  273.       args list               buffer list       meaning
  274. 1. :[N]argument [N]    11. :[N]buffer [N]    to arg/buf N
  275. 2. :[N]next [file ..]    12. :[N]bnext [N]    to Nth next arg/buf
  276. 3. :[N]Next [N]        13. :[N]bNext [N]    to Nth previous arg/buf
  277. 4. :[N]previous    [N]    14. :[N]bprevious [N]    to Nth previous arg/buf
  278. 5. :rewind        15. :brewind        to first arg/buf
  279. 6. :last        16. :blast        to last arg/buf
  280. 7. :all            17. :ball        edit all args/buffers
  281.             18. :unhide        edit all loaded buffers
  282.             19. :[N]bmod [N]    to Nth modified buf
  283.  
  284.   split & args list       split & buffer list        meaning
  285. 21. :[N]sargument [N]   31. :[N]sbuffer [N]    split + to arg/buf N
  286. 22. :[N]snext [file ..] 32. :[N]sbnext [N]      split + to Nth next arg/buf
  287. 23. :[N]sNext [N]       33. :[N]sbNext [N]      split + to Nth previous arg/buf
  288. 24. :[N]sprevious [N]   34. :[N]sbprevious [N]  split + to Nth previous arg/buf
  289. 25. :srewind            35. :sbrewind           split + to first arg/buf
  290. 26. :slast              36. :sblast             split + to last arg/buf
  291. 27. :sall        37: :sball        edit all args/buffers
  292.             38. :sunhide        edit all loaded buffers
  293.                         39. :[N]sbmod [N]       split + to Nth modified buf
  294.  
  295. 40. :args        list of arguments
  296. 41. :buffers        list of buffers
  297.  
  298. The meaning of [N] depends on the command:
  299.  [N] is number of buffers to go forward/backward on ?2, ?3, and ?4
  300.  [N] is an argument number, defaulting to current argument, for 1 and 21
  301.  [N] is a buffer number, defaulting to current buffer, for 11 and 31
  302.  [N] is a count for 19 and 39
  303.  
  304. Note: ":next" is an exception, because it must accept a list of file names
  305. for compatibility with Vi.
  306.  
  307.  
  308. The argument list and multiple windows
  309. --------------------------------------
  310.  
  311. The current position in the argument list can be different for each window.
  312. Remember that when doing ":e file", the position in the argument list stays
  313. the same, but you are not editing the file at that position.  To indicate
  314. this, the file message (and the title, if you have one) shows
  315. "(file (N) of M)", where "(N)" is the current position in the file list, and
  316. "M" the number of files in the file list.
  317.  
  318. All the entries in the argument list are added to the buffer list.  Thus, you
  319. can also get to them with the buffer list commands, like ":bnext".
  320.  
  321. :[N]al[l] [N]                    *:al* *:all* *:sal* *:sall*
  322. :[N]sal[l] [N]    Rearrange the screen to open one window for each argument.
  323.         All other windows are closed (buffers become hidden).  When a
  324.         count is given, this is the maximum number of windows to open.
  325.  
  326. :[N]sa[rgument][!] [N]                *:sa* *:sargument*
  327.         Short for ":split | argument [N]": split window and go to Nth
  328.         argument.  But when there is no such argument, the window is
  329.         not split.
  330.  
  331. :[N]sn[ext][!] [file ..]                *:sn* *:snext*
  332.         Short for ":split | [N]next": split window and go to Nth next
  333.         argument.  But when there is no next file, the window is not
  334.         split.
  335.  
  336. :[N]spr[evious][!] [N]                *:spr* *:sprevious*
  337. :[N]sN[ext][!] [N]                *:sN* *:sNext*
  338.         Short for ":split | [N]Next": split window and go to Nth
  339.         previous argument.  But when there is no previous file, the
  340.         window is not split.
  341.  
  342.                         *:sr* *:srewind*
  343. :sr[ewind][!]    Short for ":split | rewind": split window and go to first
  344.         argument.  But when there is no argument list, the window is
  345.         not split.
  346.  
  347.                         *:sla* *:slast*
  348. :sla[st][!]    Short for ":split | last": split window and go to last
  349.         argument.  But when there is no argument list, the window is
  350.         not split.
  351.  
  352.  
  353. Tag or file name under the cursor
  354. ---------------------------------
  355.  
  356.                             *:sta* *:stag*
  357. :sta[g][!] [tagname]
  358.         Does ":tag[!] [tagname]" and splits the window for the found
  359.         tag.  See also |:tag|.
  360.  
  361. CTRL-W ]                    *CTRL-W_]* *CTRL-W_CTRL-]*
  362. CTRL-W CTRL-]    split current window in two.  Use identifier under cursor as a
  363.         tag and jump to it in the new upper window.  Make new window N
  364.         high.
  365.  
  366. CTRL-W f                    *CTRL-W_f* *CTRL-W_CTRL-F*
  367. CTRL-W CTRL-F    split current window in two.  Edit file name under cursor.
  368.         Like ":split ]f", but window isn't split if the file does not
  369.         exist.  Uses the 'path' variable as a list of directory names
  370.         where to look for the file.  Also the path for current file is
  371.         used to search for the file name.  If the name is a hypertext
  372.         link that looks like "type://machine/path", only "/path" is
  373.         used.
  374.  
  375.  
  376. Using hidden buffers
  377. --------------------
  378.  
  379. A hidden buffer is not displayed in a window, but is still loaded into memory.
  380. This makes it possible to jump from file to file, without the need to read or
  381. write the file every time and having to keep the file in a window.
  382.  
  383. If the option 'hidden' ('hid') is set, abandoned buffers are kept for all
  384. commands that start editing another file: ":edit", ":next", ":tag", etc.  The
  385. commands that move through the buffer list make the current buffer hidden
  386. although the 'hidden' option is not set (see below).
  387.  
  388. You can make a hidden buffer not hidden by starting to edit it with any
  389. command.  Or by deleting it with the ":bdelete" command.
  390.  
  391.                         *hidden_quit*
  392. When you try to quit Vim while there is a hidden, modified buffer, you will
  393. get an error message and Vim will make that buffer the current buffer.  You
  394. can then decide to write this buffer (":wq") or quit without writing (":q!").
  395. Be careful: there may be more hidden, modified buffers!
  396.  
  397. :files                        *:files*
  398. :buffers                    *:buffers* *:ls*
  399. :ls        Show all buffers.  Example:
  400.  
  401.             1 #h  "/test/text"        line 1
  402.             2  -  "asdf"            line 0
  403.             3 % + "version.c"        line 1
  404.  
  405.         Each buffer has a unique number.  That number will not change,
  406.         so you can always go to a specific buffer with ":buffer N" or
  407.         "N CTRL-^", where N is the buffer number.
  408.  
  409.          '-' indicates a buffer that is not loaded.  'h' indicates a
  410.         hidden buffer: It is loaded, but currently not displayed in a
  411.         window.  '%' indicates the buffer in the current window.  '#'
  412.         indicates the alternate buffer for ":e #" or CTRL-^.  '+'
  413.         indicates a modified buffer.
  414.  
  415. :[N]bd[elete]                    *:bd* *:bdelete*
  416. :bd[elete] [N]
  417.         Unload buffer [N] (default: current buffer) and delete it from
  418.         the buffer list.  If the buffer was changed, this fails.  The
  419.         file remains unaffected.  Any windows for this buffer are
  420.         closed.  If buffer [N] is the current buffer, the next buffer
  421.         (displayed in a window) becomes the current buffer.
  422.  
  423. :[N]bdelete!
  424. :bdelete! [N]
  425.         Unload buffer [N] (default: current buffer) and delete it from
  426.         the buffer list.  If the buffer was changed the changes are
  427.         lost.  The file remains unaffected.  Any windows for this
  428.         buffer are closed.  If buffer [N] is the current buffer, the
  429.         next buffer (displayed in a window) becomes the current
  430.         buffer.
  431.  
  432. :bdelete[!] {bufname}
  433.         Like ":bdelete[!] [N]", but buffer given by name.  Note that a
  434.         buffer whose name is a number cannot be referenced by that
  435.         name; use the buffer number instead.  Insert a backslash
  436.         before a space in a buffer name.
  437.  
  438. :N,Mbdelete[!]    do ":bdelete[!]" for all buffers in the range N to M
  439.         (inclusive).
  440.  
  441. :bdelete[!] N1 N2 ...
  442.         do ":bdelete[!]" for buffer N1, N2, etc.  The arguments can be
  443.         buffer numbers or buffer names (but not buffer names that are
  444.         a number).  Insert a backslash before a space in a buffer
  445.         name.
  446.  
  447. :[N]bun[load]                    *:bun* *:bunload*
  448. :bun[load] [N]
  449.         Unload buffer [N] (default: current buffer).  The memory
  450.         allocated for this buffer will be freed.  The buffer remains
  451.         in the buffer list.  If the buffer was changed, this fails.
  452.         Any windows for this buffer are closed.  If buffer [N] is the
  453.         current buffer, the next buffer (displayed in a window)
  454.         becomes the current buffer.
  455.  
  456. :[N]bunload!
  457. :bunload! [N]
  458.         Unload buffer [N] (default: current buffer).  The memory
  459.         allocated for this buffer will be freed.  The buffer remains
  460.         in the buffer list.  If the buffer was changed, the changes
  461.         are lost.  Any windows for this buffer are closed.  If buffer
  462.         [N] is the current buffer, the next buffer (displayed in a
  463.         window) becomes the current buffer.
  464.  
  465. :bunload[!] {bufname}
  466.         Like ":bunload[!] [N]", but buffer given by name.  Note that a
  467.         buffer whose name is a number cannot be referenced by that
  468.         name; use the buffer number instead.  Insert a backslash
  469.         before a space in a buffer name.
  470.  
  471. :N,Mbunload[!]    do ":bunload[!]" for all buffers in the range N to M
  472.         (inclusive).
  473.  
  474. :bunload[!] N1 N2 ...
  475.         do ":bunload[!]" for buffer N1, N2, etc.  The arguments can be
  476.         buffer numbers or buffer names (but not buffer names that are
  477.         a number).  Insert a backslash before a space in a buffer
  478.         name.
  479.  
  480. :[N]b[uffer] [N]                    *:b* *:buffer*
  481.         Edit buffer [N] from the buffer list.  If [N] is not given,
  482.         the current buffer remains being edited.
  483.  
  484. :[N]b[uffer] {filename}
  485.         Edit buffer for {filename} from the buffer list.
  486.  
  487. :[N]sb[uffer] [N]                    *:sb* *:sbuffer*
  488.         Split window and edit buffer [N] from the buffer list.  If [N]
  489.         is not given, the current buffer is edited.
  490.  
  491. :[N]sb[uffer] {filename}
  492.         Split window and edit buffer for {filename} from the buffer
  493.         list.
  494.  
  495.                             *:bn* *:bnext*
  496. :[N]bn[ext] [N]
  497.         Go to [N]th next buffer in buffer list.  [N] defaults to one.
  498.         Wraps around the end of the buffer list.
  499.  
  500.                             *:sbn* *:sbnext*
  501. :[N]sbn[ext] [N]
  502.         Split window and go to [N]th next buffer in buffer list.
  503.         Wraps around the end of the buffer list.
  504.  
  505. :[N]bN[ext] [N]                *:bN* *:bNext* *:bp* *:bprevious*
  506. :[N]bp[revious] [N]
  507.         Go to [N]th previous buffer in buffer list.  [N] defaults to
  508.         one.  Wraps around the start of the buffer list.
  509.  
  510. :[N]sbN[ext] [N]            *:sbN* *:sbNext* *:sbp* *:sbprevious*
  511. :[N]sbp[revious] [N]
  512.         Split window and go to [N]th previous buffer in buffer list.
  513.         Wraps around the start of the buffer list.
  514.  
  515.                             *:br* *:brewind*
  516. :br[ewind]    Go to first buffer in buffer list.
  517.  
  518.                             *:sbr* *:sbrewind*
  519. :sbr[ewind]    Split window and go to first buffer in buffer list
  520.  
  521.                             *:bl* *:blast*
  522. :bl[ast]    Go to last buffer in buffer list.
  523.  
  524.                             *:sbl* *:sblast*
  525. :sbl[ast]    Split window and go to last buffer in buffer list.
  526.  
  527. :[N]bm[odified] [N]                    *:bm* *:bmodified*
  528.         Go to [N]th next modified buffer in buffer list.
  529.  
  530. :[N]sbm[odified] [N]                    *:sbm* *:sbmodified*
  531.         Split window and go to [N]th next modified buffer in buffer
  532.         list.
  533.  
  534. :[N]unh[ide] [N]            *:unh* *:unhide* *:sun* *:sunhide*
  535. :[N]sun[hide] [N]
  536.         Rearrange the screen to open one window for each loaded buffer
  537.         in the buffer list.  When a count is given, this is the
  538.         maximum number of windows to open.
  539.  
  540. :[N]ba[ll] [N]                    *:ba* *:ball* *:sba* *:sball*
  541. :[N]sba[ll] [N]    Rearrange the screen to open one window for each buffer in
  542.         the buffer list.  When a count is given, this is the maximum
  543.         number of windows to open.
  544.  
  545.  
  546. Memory usage limits
  547. -------------------
  548.  
  549. The option 'maxmem' ('mm') is used to set the maximum memory used for one
  550. buffer (in kilobytes).  'maxmemtot' is used to set the maximum memory used for
  551. all buffers (in kilobytes).  The defaults depend on the system used.  For the
  552. Amiga and MS-DOS, 'maxmemtot' is set depending on the amount of memory
  553. available.  If you don't like Vim to swap to a file, set 'maxmem' and
  554. 'maxmemtot' to a very large value.  The swapfile will then only be used for
  555. recovery.  If you don't want a swapfile at all, set 'updatecount' to 0, or
  556. use the "-n" argument when starting Vim.  Note that the 'maxmem' option is
  557. only used when a buffer is created.  Changing this option does not affect
  558. buffers that have already been loaded.  Thus you can set it to different
  559. values for different files.  'maxmemtot' works always.
  560.  
  561.  vim:ts=8:sw=8:js:tw=78:fo=tcq2:isk=!-~,^*,^\|,^\":
  562.